SELECT * FROM LOJA_SAIDAS WHERE SAIDA_ENCERRADA <> '1'

UPDATE LOJA_SAIDAS SET SAIDA_ENCERRADA='1' WHERE SAIDA_ENCERRADA='0'